package com.jymj.enumEntity.floatpopu;

/**
 * Created by ljj on 2018/9/27. 住所类别
 */
public enum ZslbEnum {
    one("旅店", 4),
    two("医院", 11),
    ni("学校", 24),
    three("培训机构", 28),
    four("单位内部", 29),
    five("集中公寓", 30),
    six("居民家中", 31),
    seven("自购房", 33),
    nine("租赁房屋", 34),
    ten("工地现场", 41),
    te("救助站", 63),
    ti("其他", 69),;
    // 成员变量
    private String name;
    private int index;

    // 构造方法
    private ZslbEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法
    public static String getName(int index) {
        for (ZslbEnum s : ZslbEnum.values()) {
            if (s.getIndex() == index) {
                return s.name;
            }
        }
        return null;
    }

    // get set方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
